package com.lagou.rpc.consumer;

import com.lagou.rpc.config.ZookeeperConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author oyz
 * @version 1.0
 * @description: 客户端启动类
 * @date 2022/2/23 21:00
 */
@SpringBootApplication
public class ClientBootstrapApplication {

    public static void main(String[] args) {
        ZookeeperConfig instance = ZookeeperConfig.getInstance();
        instance.setZookeeperAddress("192.168.106.128:2181");
        instance.setConsumerSide(true);
        instance.setReportTime(20);
        SpringApplication.run(ClientBootstrapApplication.class, args);
    }

}
